using System;
using System.Data;
using System.Data.SqlClient;
using DTN.Core.Utilities;
namespace com.dtn.deals
{
    public class NewFullTextInfo
    {
        private int id;
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
         
        private int partnerId;
        public int PartnerId
        {
            get { return partnerId; }
            set { partnerId = value; }
        }

        private int dealId;
        public int DealId
        {
            get { return dealId; }
            set { dealId = value; }
        }

        private string content;
        public string Content
        {
            get { return content; }
            set { content = value; }
        }

        private int _saleOff;
        public int saleOff
        {
            get { return _saleOff; }
            set { _saleOff = value; }
        }

        private string timeFrame;
        public string TimeFrame
        {
            get { return timeFrame; }
            set { timeFrame = value; }
        }

        private DateTime sDateDeal;
        public DateTime SDateDeal
        {
            get { return sDateDeal; }
            set { sDateDeal = value; }
        }

        private DateTime eDateDeal;
        public DateTime EDateDeal
        {
            get { return eDateDeal; }
            set { eDateDeal = value; }
        }

        private DateTime insertDate;
        public DateTime InsertDate
        {
            get { return insertDate; }
            set { insertDate = value; }
        }

        private DateTime updateDate;
        public DateTime UpdateDate
        {
            get { return updateDate; }
            set { updateDate = value; }
        }

        private string logo;
        public string Logo
        {
            get { return logo; }
            set { logo = value; }
        }
        private int cityId;
        public int CityId
        {
            get { return cityId; }
            set { cityId = value; }
        }
        private int parentCity;
        public int ParentCity
        {
            get { return parentCity; }
            set { parentCity = value; }
        }

        private string contact;
        public string Contact
        {
            get { return contact; }
            set { contact = value; }
        }
        private string productName;
        public string ProductName
        {
            get { return productName; }
            set { productName = value; }
        }

        private int cateId;
        public int CateId
        {
            get { return cateId; }
            set { cateId = value; }
        }

        private int provinceId;
        public int ProvinceId
        {
            get { return provinceId; }
            set { provinceId = value; }
        }
        private string partnerName;
        public string PartnerName
        {
            get { return partnerName; }
            set { partnerName = value; }
        }
        private string provinceName;
        public string ProvinceName
        {
            get { return provinceName; }
            set { provinceName = value; }
        }



        public NewFullTextInfo()
        {
        }
        public NewFullTextInfo(DataRow info)
        {
            id = ConvertUtility.ToInt32(info["Id"]);
            partnerId = ConvertUtility.ToInt32(info["PartnerId"]);
            dealId = ConvertUtility.ToInt32(info["DealId"]);
            content = ConvertUtility.ToString(info["Content"]);
            sDateDeal = ConvertUtility.ToDateTime(info["SDateDeal"]);
            eDateDeal = ConvertUtility.ToDateTime(info["EDateDeal"]);
            insertDate = ConvertUtility.ToDateTime(info["InsertDate"]);
            updateDate = ConvertUtility.ToDateTime(info["UpdateDate"]);
            _saleOff = ConvertUtility.ToInt32(info["saleOff"]);
            timeFrame = ConvertUtility.ToString(info["TimeFrame"]);
            logo = ConvertUtility.ToString(info["Logo"]);
            contact = ConvertUtility.ToString(info["Contact"]);
            cityId = ConvertUtility.ToInt32(info["CityId"]);
            parentCity = ConvertUtility.ToInt32(info["ParentCity"]);
            productName = ConvertUtility.ToString(info["ProductName"]);
            cateId = ConvertUtility.ToInt32(info["CateId"]);
            provinceId = ConvertUtility.ToInt32(info["ProvinceId"]);
            partnerName = ConvertUtility.ToString(info["PartnerName"]);
            provinceName = ConvertUtility.ToString(info["ProvinceName"]);
        }
        public NewFullTextInfo(DataRowView info)
        {
            id = ConvertUtility.ToInt32(info["Id"]);
            partnerId = ConvertUtility.ToInt32(info["PartnerId"]);
            dealId = ConvertUtility.ToInt32(info["DealId"]);
            content = ConvertUtility.ToString(info["Content"]);
            sDateDeal = ConvertUtility.ToDateTime(info["SDateDeal"]);
            eDateDeal = ConvertUtility.ToDateTime(info["EDateDeal"]);
            insertDate = ConvertUtility.ToDateTime(info["InsertDate"]);
            updateDate = ConvertUtility.ToDateTime(info["UpdateDate"]);
            _saleOff = ConvertUtility.ToInt32(info["saleOff"]);
            timeFrame = ConvertUtility.ToString(info["TimeFrame"]);
            logo = ConvertUtility.ToString(info["Logo"]);
            contact = ConvertUtility.ToString(info["Contact"]);
            cityId = ConvertUtility.ToInt32(info["CityId"]);
            parentCity = ConvertUtility.ToInt32(info["ParentCity"]);
            productName = ConvertUtility.ToString(info["ProductName"]);
            cateId = ConvertUtility.ToInt32(info["CateId"]);
            provinceId = ConvertUtility.ToInt32(info["ProvinceId"]);
            partnerName = ConvertUtility.ToString(info["PartnerName"]);
            provinceName = ConvertUtility.ToString(info["ProvinceName"]);
        }
        public NewFullTextInfo(SqlDataReader dr)
        {
            id = ConvertUtility.ToInt32(dr["Id"]);
            partnerId = ConvertUtility.ToInt32(dr["PartnerId"]);
            dealId = ConvertUtility.ToInt32(dr["DealId"]);
            content = ConvertUtility.ToString(dr["Content"]);
            sDateDeal = ConvertUtility.ToDateTime(dr["SDateDeal"]);
            eDateDeal = ConvertUtility.ToDateTime(dr["EDateDeal"]);
            insertDate = ConvertUtility.ToDateTime(dr["InsertDate"]);
            updateDate = ConvertUtility.ToDateTime(dr["UpdateDate"]);
            _saleOff = ConvertUtility.ToInt32(dr["saleOff"]);
            timeFrame = ConvertUtility.ToString(dr["TimeFrame"]);
            logo = ConvertUtility.ToString(dr["Logo"]);
            contact = ConvertUtility.ToString(dr["Contact"]);
            cityId = ConvertUtility.ToInt32(dr["CityId"]);
            parentCity = ConvertUtility.ToInt32(dr["ParentCity"]);
            productName = ConvertUtility.ToString(dr["ProductName"]);
            cateId = ConvertUtility.ToInt32(dr["CateId"]);

            provinceId = ConvertUtility.ToInt32(dr["ProvinceId"]);
            partnerName = ConvertUtility.ToString(dr["PartnerName"]);
            provinceName = ConvertUtility.ToString(dr["ProvinceName"]);
        }
    }
}

